#pragma once
#include "ControlEx.h"
#include "hereUIShowThread.h"

class hereAndroidHelperFrameWnd : public CWindowWnd, public INotifyUI
{
public:
	hereAndroidHelperFrameWnd();
	virtual ~hereAndroidHelperFrameWnd();
	LPCTSTR GetWindowClassName() const;
	UINT GetClassStyle() const;
	void OnFinalMessage(HWND /*hWnd*/);
	void Init();
	void OnPrepare();
	void Notify(TNotifyUI& msg);
	LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnGetMinMaxInfo(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnSysCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);

public:
	CPaintManagerUI m_pm;

private:
	CButtonUI *m_pCloseBtn;
	CButtonUI *m_pMaxBtn;
	CButtonUI *m_pRestoreBtn;
	CButtonUI *m_pMinBtn;
	//CButtonUI* m_pConnectBtn;
	//CLabelUI* m_pPhoneStateLabel;
	//CLabelUI* m_pPhoneInfoLabel;
	CControlUI *m_pSpaceBar1;
	CContainerUI *m_pPhoneMan1;
	int m_UIWidth;

	// customized by here
	hereUIShowThread m_hereUINotify;

};
